package vsfsfs5;
class Animalk {
    public void shout(){
        System.out.println("喵喵喵~~~");
    }
}
class Doga extends Animalk {
    public void shout(){
        System.out.println("汪汪……");
    }
    public void eat(){
        System.out.println("吃肉……");
    }
}
public class Example16 {
    public static void main(String[] args) {
        Animalk an = new Doga();
        Doga dog = (Doga) an;
        dog.shout();
        dog.eat();
    }
}